# -*- coding = utf-8 -*-
# @Time : 2021/3/3 21:32x
# @Author : kk_J
# @File: test.py
# @Software: PyCharm
import http.cookiejar
import json
import re

import requests
from bs4 import BeautifulSoup

url = 'https://wx.jdcloud.com/order/orderPageList?pageNow=' + str(1) + '&id=' + str(re.findall('/(\d+)$', 'https://wx.jdcloud.com/market/datas/5/10665')[0]) + '&type=0'
js = requests.get(url)
print(re.findall('totalCount:\'(\d+)\'', js.text)[0])
